<%@taglib prefix="s" uri="/struts-tags"	%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<header>
	<div id="headerDiv">
		<sec:authorize access="isAnonymous()">
			<span><a href="/Struts2_Template/redirect.action?page=login"><s:text name="general.login"/></a></span>
			&nbsp;&nbsp;&nbsp;
			<span><a href="/Struts2_Template/redirect.action?page=registration"><s:text name="general.register"/></a></span>
		</sec:authorize>
		
		<sec:authorize access="isAuthenticated()">
			<span><a href="<c:url value="/j_spring_security_logout"/>"><s:text name="general.logout"/></a></span>
			&nbsp;&nbsp;&nbsp;
			<span class="alignRight"><a href="/Struts2_Template/redirect.action?page=profile"><s:text name="general.profile"/></a></span>	
		</sec:authorize>
	</div>
</header>